using SpiderMaster.AspNet.TradingSystem.DataAccessLayer;

namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class MemberManagement
    {
        public partial class DB
        {
            public partial class Helper
            {
                public static MembersDataComponent.MembersRow GetFirstRow(MembersDataComponent.MembersDataTable table)
                {
                    //DataTable dt = new DataTable();
                    //dt.GetFirstRow<MembersDataComponent.MembersRow>();

                    if (table != null && table.Rows.Count > 0)
                    {
                        MembersDataComponent.MembersRow row;
                        row = table.Rows[0] as MembersDataComponent.MembersRow;
                        return row;
                    }
                    else
                        return null;
                }
            }
        }
    }
}